﻿/**
 * @Author: Larry  2017-04-16 17:20:56
 *+----------------------------------------------------------------------
 *| LarryBlogCMS [ LarryCMS缃戠珯鍐呭绠＄悊绯荤粺 ]
 *| Copyright (c) 2016-2017 http://www.larrycms.com All rights reserved.
 *| Version 1.09
 *| <313492783@qq.com>
 *+----------------------------------------------------------------------
 */
function getClientInfo() {
    var userAgentInfo = navigator.userAgent;
    var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");
    var agentinfo = null;
    for (var i = 0; i < Agents.length; i++) {
        if (userAgentInfo.indexOf(Agents[i]) > 0) { agentinfo = userAgentInfo; break; }
    }
    if (agentinfo) {
        return agentinfo;
    } else {
        return "PC";
    }
}

layui.use(['jquery', 'layer', 'form'], function () { 'use strict'; var $ = layui.jquery, layer = layui.layer, form = layui.form(); $(window).on('resize', function () { var w = $(window).width(); var h = $(window).height(); $('.larry-canvas').width(w).height(h) }).resize(); /*$(function () { $("#canvas").jParticle({ background: "#141414", color: "#E5E5E5" }) })*/ });